import { Schema } from 'mongoose';

export default new Schema({
    orderId : Number,
    lastData : {timestamp : Number, updateTime:Number, consumeTime : Number, power : Number, voltage : Number, current : Number, consumeEnergy : Number, temperature : Number},
    data : [{timestamp : Number, updateTime:Number, consumeTime : Number, power : Number, voltage : Number, current : Number, consumeEnergy : Number, temperature : Number}]
})